Overriding Printing Messages
When you decide that you need to override a certain printing message in a printing extension or printer driver, you need to follow these three steps:
The chapters "Printing Extensions" and "Printer Drivers" in this book provide examples of message overrides and override resources and describe the jump table.
- Write the code to implement your override. You can name your override function with whatever name you want. You need to decide whether your override is going to forward the message to other message handlers (partially override) or not forward the message at all (totally override). If you are partially overriding the message, then you must decide at which point in your code to forward the message to other handlers.
- Add the message name to one of the override (
'over'
) resources that you include with your extension or driver. Each entry in an override resource specifies the QuickDraw GX message ID, the code segment, and the offset of the jump statement
to that function in the jump table. The override resource is described in the chapter "Printing Resources" in this book.- Add a jump statement for your message override to the assembly-language jump table that you must include in the code for your extension or driver.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help